<template>
	<view>
		<view class="item" v-for="(item, index) in 3" :key="item">
			<view class="top fcs">
				<view class="l">
					<image class="img" src="@/static/img/print.png" mode=""></image>
					<text class="text">打印机名称</text>
				</view>
				<view class="r">
					<u-button shape="circle" :custom-style="submitStyle">删除</u-button>
				</view>
			</view>
			<view class="botom">
				<u-radio-group active-color="#F3060D" v-model="value">
					<u-radio>使用此打印机</u-radio>
				</u-radio-group>
			</view>
		</view>
		
		<view class="btn" @click="toPath">
			搜索
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: false,
				submitStyle: {
					color: '#FFF',
					background: '#F3060D',
					width: '167rpx',
					height: '64rpx'
				},
			};
		},
		methods: {
			toPath() {
				uni.navigateTo({
					url: '/pages/set/printer/search'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn {
		position: fixed;
		bottom: 46rpx;
		left: 37rpx;
		width: 678rpx;
		height: 88rpx;
		border-radius: 44.5rpx;
		background: linear-gradient(147.27deg, #F1714E 0%, #E93E30 100%);
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: 500;
		font-weight: 32rpx;
		color: #FFF;
	}
	.item {
		padding: 0 27rpx;
		background-color: #FFF;
		border-radius: 10rpx;
		margin-bottom: 20rpx;
		.botom {
			padding: 31rpx 0;
		}
		.top {
			padding: 24rpx 0;
			border-bottom: 1rpx dashed #E6E6E6;
			.l {
				display: flex;
				align-items: center;
				.img {
					width: 80rpx;
					height: 80rpx;
					margin-right: 25rpx;
					font-weight: 500;
					font-size: 32rpx;
					color: #383838;
				}
			}
		}
	}
	.fcs {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
</style>
<style>
	page {
		background-color: #F4F5F7;
		padding: 20rpx;
		box-sizing: border-box;
	}
</style>